{% extends 'base.html' %}

{% block title %}
    修改用户
{% endblock %}

{% block content %}
    <form action="" method="post">
        {% csrf_token %}
        <div class="form-group">
            <label for="username">用户名</label>
            <input type="text" class="form-control" name="username" id="username" value="{{ user_list.username }}">
        </div>
        <div class="form-group">
            <label for="password">密码</label>
            <input type="password" class="form-control" name="password" id="password" value="{{ user_list.password }}">
        </div>
        <div class="form-group">
            <label for="gender">性别</label>
            <input type="number" class="form-control" name="gender" id="gender" min="0" max="10" value="{{ user_list.gender }}">
        </div>
        <div class="form-group">
            <label for="new">测试</label>
            <input type="text" class="form-control" name="new" id="new" value="{{ user_list.new }}">
        </div>
        <div class="form-group">
            <label for="age">年龄</label>
            <input type="number" class="form-control" name="age" id="age" max="120" min="0" value="{{ user_list.age }}">
        </div>
        <div class="form-group">
            <label for="create">时间未修改</label>
        </div>
        <input type="submit"  class="btn btn-default">
    </form>
{% endblock %}